package com.example.yiwei.crm.view.activity.coordinationActivity;

import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.base.baseClass;
import com.example.yiwei.crm.dao.customerDao;
import com.example.yiwei.crm.entity.CustomerMessageEntity;
import com.example.yiwei.crm.view.Class.listviewClass.AutoListView;
import com.example.yiwei.crm.view.activity.customerActivity.CustomerAddActivity;

import java.util.List;

public class CustomerRecordActivity extends AppCompatActivity {
private AutoListView lstv;
    private ImageView img_back,img_add;
    List<CustomerMessageEntity> list;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_customer_record);
        lstv= (AutoListView) findViewById(R.id.customer_record_listview);
        lstv.setDivider(new ColorDrawable(Color.rgb(216, 216, 216)));
        lstv.setDividerHeight(1);
        lstv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
        img_add= (ImageView) findViewById(R.id.customer_record_img_plus);
        img_back= (ImageView) findViewById(R.id.customer_record_img_back);
        img_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        img_add.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(CustomerRecordActivity.this, CustomerAddActivity.class);
                intent.putExtra("tag","add-customer_record");
                startActivity(intent);
            }
        });
        new Thread(new Runnable() {
            @Override
            public void run() {

            }
        }).start();

    }
}
